﻿using System;
using System.ServiceModel;
using System.ServiceModel.Activation;
using Microsoft.SharePoint;

namespace Northwind.ServiceObjects
{
    class NorthwindServiceHostFactory : ServiceHostFactory
    {
        public override ServiceHostBase CreateServiceHost(string constructorString, Uri[] baseAddresses)
        {
            ServiceHostBase serviceHost = base.CreateServiceHost(constructorString, baseAddresses);
            serviceHost.Configure(SPServiceAuthenticationMode.Claims);
            return serviceHost;
        }
    }
}
